import {
  UploadImage,
  Color
} from '@/components/CustomPage/fields/widget'

export function bgImgColor() {
  return [
    {
      type: UploadImage,
      option: { label: '背景图片', name: 'imgBg', required: true }
    },
    { type: Color, option: { label: '背景颜色', name: 'bgcolor', value: '#fff', showalpha: true }},
    // { type: Slider, option: { label: '左右外边距', name: 'margins', value: 0, max: 40, step: 1 }}
    /* {
          type: Switch,
          option: {
            label: '数据为空时是否展示',
            name: 'isEmptyShow',
            value: false,
            activetext: '是',
            inactivetext: '否'
          }
        }*/
  ]
}